<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ page import="java.util.*,com.doa.beans.*"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<link href="<s:url value="/css/style.css"/>"  />
<title>MVC Test</title>
</head>
<body style="margin: 0px auto; width: 960px">
	<div style="width: 600;  background: #AAA; margin: 0px auto; padding: 5px">
		<center>
			<h2 >MVC TEST APP</h2>
			<br />
			<p style="padding: 1em;">
				Click here go back to <a href="<s:url value='/' />">Home</a>
			</p>
			<br>
			<s:if test="#request.list != null">


				<table cellspacing="0" cellpadding="6">
					<tr style="background-color: #BBB">
						<th >First Name</th>
						<th >Last Name</th>
						<th >Email</th>
					</tr>

					<s:iterator value="#request.list">
						<tr style="background-color: #EEE">
							<td ><s:property value="firstName" /></td>
							<td ><s:property value="lastName" /></td>
							<td ><s:property value="email" /></td>
						</tr>
					</s:iterator>

				</table>
			</s:if>
			<s:else>
				No Record found
			</s:else>
		</center>
	</div>
</body>
</html>